#include "stm32f10x.h"
#include "bsp_led.h"
#include "systick.h"
#include "bsp_buzz.h"   
#include "bsp_key.h"
#include "bsp_num.h"
#include "bsp_Tim.h"
#include "stm32f10x_exti.h"

extern uint8_t tim2_1s_flag1;
extern uint8_t tim2_1s_flag2;
extern uint8_t tim3_1s_flag;

int main(void)
{
	LED_GPIO_Config();
	LED_ALL_OFF();
	LED_ONCE();
	BASIC_TIM_Init();
	while(1)
	{   
		
		if(tim2_1s_flag1==1)
		{
			LED_GEN_ON();
		}
		else
		{
			LED_GEN_OFF();
		}
		if(tim2_1s_flag2==1)
		{
			LED_WIT_ON();
		}
		else
		{
			LED_WIT_OFF();
		}
		if(tim3_1s_flag==1)
		{
			LED_RED_ON();
			LED_BLU_OFF();
		}
		else
		{
			LED_RED_OFF();
			LED_BLU_ON();
		}
	
	}
}

